#!/usr/bin/env python
# Author                 Version      Up-Date
# -----------------------------------------------
# L. Fraga (SOAR)          1.0        29 Sep 2009

'''
soizerocombine creates the master zero. 
Usage: soizerocombine 
'''


from pyraf import iraf
from pyraf.iraf import pysoar
import sys

def soizerocombine(input,output):
    iraf.mscred(_doprint=0)
    iraf.zerocombine(input=input,output=output,combine="average",reject="minmax",ccdtype="",process='no')

 
parfile = iraf.osfn("pysoar$soi/soizerocombine.par")
t = iraf.IrafTaskFactory(taskname="soizerocombine",value=parfile,function=soizerocombine)
